package com.tj.collection.db.admin.dao;


import com.tj.collection.db.admin.entity.AdminTokenEntity;
import com.tj.collection.db.admin.entity.AdminTokenEntityConditions;
import com.tj.collection.common.old.BaseDAO;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/3/10
 * Time: 下午5:27
 */
public interface AdminTokenDAO extends BaseDAO<AdminTokenEntity, Long, AdminTokenEntityConditions> {

    /**
     * @param adminId
     * @return
     */
    AdminTokenEntity getByAdminId(Long adminId);


    /**
     * @param token
     * @return
     */
    AdminTokenEntity getByToken(String token);

    /**
     * @param adminId
     * @return
     */
    Integer deleteByAdminId(Long adminId);
}
